﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="EmployeeTask.aspx.cs" Inherits="eProject_SEM3_SecurityServices.EmployeeTask" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../CSS/EmployeeTask.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="employeeInfor">
        <div id="searchTool">
            <asp:DropDownList ID="ddOption" runat="server" CssClass="ddemp">
                <asp:ListItem Value="1">Id</asp:ListItem>
                <asp:ListItem Value="2">Name</asp:ListItem>
                <asp:ListItem Value="3">Phone</asp:ListItem>
                <asp:ListItem Value="4">Region</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="tbSearchContent" runat="server" CssClass="tbSearch"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="Search" CssClass="btconfirm" OnClick="Button1_Click" />
        </div>
        <asp:Panel ID="Panel1" runat="server" Height="300px" ScrollBars="Vertical">
            <asp:GridView ID="GridView1" runat="server" Width="980px" AutoGenerateColumns="False"
                BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
                CellPadding="4" AutoGenerateSelectButton="True" 
                onselectedindexchanged="GridView1_SelectedIndexChanged">
                <Columns>
                    <asp:TemplateField HeaderText="Id">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%#Bind("EmployeeID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Name">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%#Bind("EmployeeFullName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Phone">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("EmployeePhone") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Region">
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%#Bind("Region") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Gender">
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("EmployeeGender").ToString().Equals("False")?"nu":"nam" %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="Red" Font-Bold="True" ForeColor="#CCFF99" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
        </asp:Panel>
        <div id="contractInfor">
        </div>
</asp:Content>
